﻿using Basic.FormCollect;
using Basic.FormRemoteModel.PhysicalPage.Model;
using Basic.FormService.Interface;

namespace Basic.FormService.lmpl
{
    internal class PhysicalPageService : IPhysicalPageService
    {
        private readonly IPhysicalPageCollect _Service;

        public PhysicalPageService ( IPhysicalPageCollect service )
        {
            this._Service = service;
        }


        public PhysicalPageDto[] Gets ( long formId )
        {
            return this._Service.GetsByFormId<PhysicalPageDto>(formId);
        }

        public long Set ( PhysicalPageSet set )
        {
            return this._Service.Set(set);
        }
    }
}
